﻿// nodeID and nodeType are properties of the umbracoDefault.js script which will be accessible from this file.

// These are the properties of the node that has been right clicked to create the context menu.
// These properties will be helpful in doing something useful with the script.

function ImportMedia(title) {
    if (nodeID != '-1' && nodeType != '') {
        parent.openModal('/umbraco/filemanager/Dialogs/ImportMedia.aspx?type=file&item=' + encodeURI(nodeID), title + ' - ' + nodeID, 350, 425);
        return false;
    }
}